<template>
    <view>
        <u-tag :text="houseTypeText" color="#999" bgColor="rgb(247, 247, 252)" borderColor="rgb(247, 247, 252)" type="warning"></u-tag>
    </view>
</template>

<script>
import { mapGetters } from 'vuex';
export default {
    name: 'house-tag',
    props: ['value'],
    data() {
        return {};
    },
    computed: {
        ...mapGetters(['houseType']),
        houseTypeText() {
            var data = this.houseType.find((item) => item.value == this.value);
            return data ? data.text : '';
        }
    }
};
</script>

<style lang="scss"></style>
